const fastify = require('fastify')({
  logger: true,
});

fastify.register(require('./modules/first-route'));

fastify.listen({ port: 5002 }, function (err, address) {
  if (err) {
    fastify.log.error(err);
    process.exit(1);
  }
  console.log('端口5002正在监听中...');
});
